package com.example.weli.ble2test;

import android.view.View;
import android.widget.EditText;

public class DialogWrapper2 {
    View base = null;
    EditText titleField = null;
    EditText valueField = null;
    EditText xmodecode;
    EditText xmodedatalong;
    EditText xmodetime;
    EditText xmodetryc;

    DialogWrapper2(View base) {
        this.base = base;
        this.valueField = (EditText) base.findViewById(R.id.setvalue);
        this.xmodedatalong = (EditText) base.findViewById(R.id.dataframe);
        this.xmodetime = (EditText) base.findViewById(R.id.connectime);
        this.xmodetryc = (EditText) base.findViewById(R.id.trycount);
        this.xmodecode = (EditText) base.findViewById(R.id.connectcode);
    }

    String getdatalong() {
        return this.xmodedatalong.getText().toString();
    }

    String getdatatime() {
        return this.xmodetime.getText().toString();
    }

    String getretryc() {
        return this.xmodetryc.getText().toString();
    }

    String getcode() {
        return this.xmodecode.getText().toString();
    }

    void setdatalong(String str) {
        this.xmodedatalong.setText(str);
    }

    void setdatatime(String str) {
        this.xmodetime.setText(str);
    }

    void setretryc(String str) {
        this.xmodetryc.setText(str);
    }

    void setcode(String str) {
        this.xmodecode.setText(str);
    }

    void setvaluetext(String str) {
        ((EditText) this.base.findViewById(R.id.setvalue)).setText(str);
    }
}
